package com.tcat.user.pojo;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@ApiModel(description = "角色")
@Data
@Table(name="tb_roles")
public class Roles {
    @Id
    @KeySql(useGeneratedKeys = true)
    @Column(name="role_id")
    private Long id;
    @Column(name="role_name")
    private String name;

    public Roles(Long id, String name) {
        this.id = id;
        this.name = name;
    }
}
